<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html >
<html >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
	<title>登陆</title>
	<link href="${pageContext.request.contextPath}/static/css/adminLogin_css/bootstrap.min.css" title="" rel="stylesheet" />

	<link title="orange" href="${pageContext.request.contextPath}/static/css/adminLogin_css/login.css" rel="stylesheet" type="text/css"/>


</head>

<body>

<div style="height:1px;"></div>
<div class="login">
	<header>
		<h1>登陆</h1>
	</header>
	<div class="sr">
		<c:choose>
			<c:when test="${mess ne null }">
					<input  id="messRes" type="hidden" value="${mess}"/>
			</c:when>
			<c:otherwise>
			</c:otherwise>
		</c:choose>
		<form method="post" action="${pageContext.request.contextPath}/admin/login">
			<div class="name">
				<label>
					<i class="sublist-icon glyphicon glyphicon-user"></i>
				</label>
				<input type="text"  name="adminname" placeholder="这里输入登录名" oninvalid="setCustomValidity('用户名长度应该为3-10位！');" oninput="setCustomValidity('');" required minlength="3"  maxlength="10" class="name_inp" >
			</div>
			<div class="name">
				<label>
					<i class="sublist-icon glyphicon glyphicon-pencil"></i>
				</label>
				<input type="text"  name="password" placeholder="这里输入登录密码" oninvalid="setCustomValidity('密码长度应该为6-10位！');" oninput="setCustomValidity('');" minlength="6"  maxlength="10" required class="name_inp">
			</div>
			<input type="submit" class="dl"  value="登录">
		</form>
	</div>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
/*	var mess = $("#messRes").val();
	console.log(mess);
	if(mess != null ){
		alert(mess);
	}*/
if(top.location != this.location){
	top.location.replace('${pageContext.request.contextPath}/admin/admin_login.jsp');
}
</script>

</body>

</html>
